﻿<Page x:Class="Framework_Tool.UnitDelete"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="547" d:DesignWidth="1042"
	Title="UnitDelete">
    <Grid Name="mainContent" Loaded="mainContent_Loaded_1">
        <Border BorderBrush="#FF311E51" BorderThickness="3" CornerRadius="30" Width="1042" Height="547" VerticalAlignment="Top" HorizontalAlignment="Left">
            <Grid>
                <Border Name="mask" CornerRadius="27" >
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF311E51" Offset="0"/>
                            <GradientStop Color="#FF594F6B" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                </Border>
                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Margin="30,0,0,0" VerticalAlignment="Top" Width="874">
                    <Button Margin="0,0,25,0" Visibility="Visible" x:Name="viewUnit" Content="View" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="viewUnit_Click_1"/>
                    <Button Margin="0,0,25,0" Visibility="Visible" x:Name="addUnit" Content="Add" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="addUnit_Click_1" />
                    <Button Margin="0,0,25,0" Visibility="Visible" x:Name="updateUnit" Content="Update" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right"  FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="updateUnit_Click_1" />
                    <Button Margin="0,0,25,0" Visibility="Visible" x:Name="deleteUnit" Content="Delete" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
                    <Button Margin="0,0,25,0" Visibility="Visible" x:Name="searchUnit" Content="Search" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right"  FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="searchUnit_Click_1" />
                </StackPanel>
                <Label x:Name="deleteUnitLbl" Content="Delete a unit" Margin="70,65,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" RenderTransformOrigin="-0.551,0.513" FontWeight="Bold" />
                <Label x:Name="unitID" Content="Unit ID" Margin="70,130,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <ComboBox x:Name="unitIDDeleteCmbx" Margin="200,130,0,0" HorizontalAlignment="Left" Height="25" VerticalAlignment="Top" Width="200" FontSize="14" SelectionChanged="unitIDDeleteCmbx_SelectionChanged" />
                <Label x:Name="courseDetails" Content=" Course Details" Margin="70,190,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" FontWeight="Bold" />
                <Label x:Name="crseTitle" Content="Course Title" Margin="70,225,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <TextBox x:Name="unitDelete_CourseTitleTxt" Margin="200,225,0,0" IsEnabled="False" Height="25" VerticalAlignment="Top" FontSize="14" HorizontalAlignment="Left" Width="200" />
                <Label x:Name="crseID" Content="Course ID" Margin="70,260,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Label x:Name="crseIDDeleteLbl" Margin="200,260,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Label x:Name="unitTaughtBy" Content="Unit taught by" Margin="70,320,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" FontWeight="Bold" />
                <ListBox x:Name="unitStfDeleteListBox" HorizontalAlignment="Left" Height="90" Margin="70,355,0,0" VerticalAlignment="Top" Width="280" ScrollViewer.VerticalScrollBarVisibility="Auto" IsEnabled="False"/>
                <Label x:Name="unitTitleDelete" Content="Unit Title" Margin="480,95,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="480,130,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="500" CornerRadius="15" Background="White" />
                    <TextBox x:Name="unitTitleDeleteTxt" IsEnabled="False" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="500" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="unitDescDelete" Content="Unit Description" Margin="480,190,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <TextBox x:Name="unitDeleteDescTxt" Margin="480,230,0,0" IsEnabled="False" HorizontalAlignment="Left" Height="200" TextWrapping="Wrap" VerticalAlignment="Top" Width="500" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" ScrollViewer.VerticalScrollBarVisibility="Auto"/>
                <Grid Margin="100,470,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Visibility="Hidden" x:Name="unitDeletedLblGrid">
                    <Border HorizontalAlignment="Left" Width="350" CornerRadius="15" Background="#FFF5E06B" />
                    <Label x:Name="unitDeletedLbl" Foreground="#FF311E51" Width="350" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" FontWeight="Bold" FontStyle="Italic" HorizontalContentAlignment="Center" />
                </Grid>
                <Grid Margin="600,450,195,30" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                    <Border BorderBrush="#FF28B5D3" BorderThickness="1" Height="50"  Width="240" CornerRadius="12">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF28B5D3" Offset="0.406"/>
                                <GradientStop Color="White"/>
                            </LinearGradientBrush>
                        </Border.Background>
                    </Border>
                    <Button Content="Delete Unit" x:Name="unitDelete" FontSize="25" Height="50" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White" Width="240" Click="unitDelete_Click_1" />
                </Grid>
                <Grid Margin="0,0,50,30" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                    <Border BorderBrush="#FFC8C8C8" BorderThickness="1" HorizontalAlignment="Right" Height="50"  Width="130" CornerRadius="12">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFC8C8C8" Offset="0.406"/>
                                <GradientStop Color="White"/>
                            </LinearGradientBrush>
                        </Border.Background>
                    </Border>
                    <Button Content="Cancel" x:Name="cancelUnitDelete"  FontSize="25" Height="50" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="Black" Width="130" Click="cancelUnitDelete_Click_1" />
                </Grid>
            </Grid>
        </Border>
    </Grid>
</Page>
